import Http from '../../ajax/Http';
const service = 'api/studio';

class InnovationStudioController{
    //新建工作室
    createdStudio(params){
        return Http.post(service,'created-studio',params)
    }
    //获取工作室列表
    getList(query){
        return Http.post(service,'get-studio-page',query)
    }
    //获取工作室审批列表
    getAgreementList(query){
        return Http.post(service,'get-agreement-studio-page',query)
    }
    //工作室成员审批
    agreementNewMember(params){
        return Http.post(service,'members-review',params)
    }
    //申请加入
    applyToJoin(params){
        return Http.post(service,'apply-to-join',params)
    }
    //工作室审批
    agreementStudio(params){
        return Http.post(service,'agreement',params)
    }
    //工作室信息修改
    updateInfo(params){
        return Http.post(service,'change-studio-info',params)
    }
    //工作室负责人修改
    changeLeader(params){
        return Http.post(service,'change-studio-leader',params)
    }
    // 可申请加入的工作室
    canApplyStudioList(params){
        return Http.post(service,'can-apply-studio-list',params)
    }
    // 申请记录
    getMembersPage(params){
        return Http.post(service,'get-members-page',params)
    }
    //根据工作室编码获取工作室列表
    getMembersByList(params){
        return Http.post(service,'get-members-by-list',params)
    }
    
}
export default new InnovationStudioController();